<script setup>
import { ref } from 'vue'
import pageContainer from '../../components/pageContainer.vue'

const formModel = ref({
  username: '',
  password: '',
  newPassword: '',
})
</script>

<template>
  <pageContainer title="修改密码">
    <el-form
      ref="ruleForm"
      :rules="rules"
      :model="formModel"
      status-icon
      class="demo-ruleForm"
      :size="formSize"
    >
      <el-form-item label="用户名" prop="username">
        <el-input
          v-model="formModel.username"
          disabled
          style="width: 500px; height: 45px"
        ></el-input>
      </el-form-item>
      <el-form-item label="原密码" prop="password">
        <el-input
          v-model="formModel.password"
          placeholder="请输入原密码"
          style="width: 500px; height: 45px"
        ></el-input>
      </el-form-item>
      <el-form-item label="新密码" prop="newPassword">
        <el-input
          v-model="formModel.newPassword"
          placeholder="请输入新密码"
          style="width: 500px; height: 45px"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">提交修改</el-button>
      </el-form-item>
    </el-form>
  </pageContainer>
</template>
